<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>我要借入</title>
		<link rel="stylesheet" type="text/css" th:href="@{../css/base.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{../css/index.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{../css/message.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{../css/bootstrap.min.css}"/>
		
		<!--[if lt IE 9]>
			<script src=" ../js/html5shiv.js"></script>
		<script src="../js/bootstrap.min.js"></script>

		<![endif]-->
	</head>
	<body>
		<div class="header_bg">
			<header>
				<a class="logo" href="#">
					<img th:src="@{../images/jdym.png}" style="width:140px;height: 75px"/>
				</a>
				<ul id="nav">
					<li><a href="/jump?pg=index ">首页</a><span class="ul-img"></span></li>
					<li><a href="/jump?pg=borrow_home_page ">我要借出</a><span></span></li>
					<li><a href="/jump?pg=account_fund_management ">我要借入</a><span></span></li>
					<li><a href="/jump?pg=personal_center ">我的账户</a><span></span></li>
					<li><a href="/jump?pg=help_center ">帮助</a><span></span></li>
					<li><a href="/jump?pg=news ">社区</a><span></span></li>
					<li><a href="/jump?pg=authentication ">本金保障</a><span></span></li>
				</ul>
				
				<div id="unentry_status">
				<a href="/jump?pg=entry " id="header_entry">登录</a>
				<a href="/jump?pg=register " id="header_register">免费注册</a>
				</div>
				
				<ul id="person_message">
					<li><a href="/jump?pg=personal_center "><span></span></a></li>
					<li><a href="/jump?pg=personal_center ">陈政</a></li>
					<li><a href="/jump?pg=message "><span></span></a></li>
					<li><a href="/jump?pg=#"><span></span></a></li>
					<li><a id="leave" href="#">退出</a></li>
					
					<span id="person_message_num">22</span>
					
					<span id="message_setting1"></span>
					<ul id="message_setting2">
						<li>资料设置</li>
						<li>安全中心</li>
						<li>头像设置</li>
						<li>修改密码</li>
						<li>选项名称</li>
					</ul>
				</ul>
				
				
			</header>
			
			<div class="lend_out_bg">
					<div class="lend_out">
						<a href="/jump?pg=borrow_details ">发布借款</a>
						<a href="/jump?pg=borrow_interest ">利息计算器</a>
						<a href="/jump?pg=borrow_credit_rating ">个人信用借出等级</a>
						<a href="/jump?pg=lend_list_details ">借出列表详情</a>
					</div>
				</div>
			
			<div class="borrow_in_bg">
					<div class="borrow_in">
						<a href="/jump?pg=borrow_details ">查找借款</a>
						<a href="/jump?pg=borrow_interest ">利息计算器</a>
						<a href="/jump?pg=borrow_credit_rating ">个人信用借入等级</a>
						<a href="/jump?pg=borrow_repayment_treatment ">还款</a>
						<a href="/jump?pg=lend_list_details ">借入列表详情</a>
						<a href="/jump?pg=lend_list ">查找放款</a>
					</div>
				</div>
			
		</div>
		
		<div class="borrow_details_main">
			<div class="borrow_details_main_title">
				<div class="borrow_details_main_color">1</div>
				<h1>我要借入</h1>
				
			</div>
<!--			-->
<!--			<p class="borrow_details_main_attention">-->
<!--			<div style="display: block;margin-bottom: 162px;margin-left: 680px">-->

<!--					<div class="company-adviser clearfix" style="width: 300px;border: 1px solid #ccc;padding: 14px;border-radius: 2px;float: left;min-height: 162px;height:162px;">-->
<!--					<div class="adviser-photo" style="width: 84px;float: left;margin-right: 25px;">-->
<!--						<img src="//res.rongzi.com/Main/newMain/images/userInfo/xindaiPhoto.png" title="张经理" style="margin-left: 8px;">-->
<!--					</div>-->
<!--					<div class="adviser-infor" style="padding-left: 22px;" >-->
<!--			<p class="infor-name" style="height: 38px;line-height: 38px;">-->
<!--			<span class="job"><i></i>专业顾问</span></p>-->
<!--			<p class="infor-tel" style="height: 30px;line-height: 24px;color: #ff6e36;font-size: 18px;">-->
<!--				400-658-9966-->
<!--			</p>-->
<!--			<p class="infor-concat clearfix">-->
<!--				<span class="online f-fl curPointer" onclick="startMeqia()" style="width: 140px;text-align: center;height: 28px;line-height: 26px;border: 1px solid #999;border-radius: 2px;float: left;cursor: pointer;">在线咨询</span>-->
<!--				<span class="wechat f-fl"></span>-->
<!--			</p>-->
<!--		</div>-->
<!--		</div>-->
<!--		</div>-->
<!--			</p>-->
				
			<div class="borrow_details_content">
				<form action="/loan/applyloan " method="post">
				<h2>借款基本信息</h2>
					<input id="LoanfirmId" type="hidden" name="firmId">
				<p class="borrow_details_content_information">借款银行：</p>
					<select  id="cobankName" name="coBankId" class="borrow_details_content_bg">
						<option>请选择...</option>
						<option th:if="${PL}!=null" th:selected="${PL.cobankId}==${coBanks.cobankId}" th:each="coBanks:${coBanks}" th:value="${coBanks.cobankId}" th:text="${coBanks.cobankName}">
						<option th:if="${PL}==null" th:each="coBanks:${coBanks}" th:value="${coBanks.cobankId}" th:text="${coBanks.cobankName}">

						</option>
					</select>
<!--				<input type="text" name="borrow_details_c'ontent_txt1" id="borrow_details_content_txt1" value="" /><br />-->
				<p class="borrow_details_content_information">借款金额：</p>
				<input type="text" name="loanAmount" id="borrow_details_content_txt2" value="" /><br />
				<p class="borrow_details_content_information">借款期限：</p>
<!--				<div class="borrow_details_content_bg">-->
<!--						请选择-->

						<select  name="loanDeadline" class="borrow_details_content_bg">
								<option value="1">1年</option>
								<option value="2">2年</option>
								<option value="3">3年</option>
								<option value="4">4年</option>
								<option value="5">5年</option>
								<option value="6">6年</option>
						</select>
							<span></span>

<!--					</div>-->
					<br />
				
				<p class="borrow_details_content_information">年利率：</p>
<!--				<input type="text" name="borrow_details_content_txt1" id="borrow_ndetails_content_txt3" value="" />-->
	            <span name="loanRate" >
					<input type="text" name="loanRate" id="borrow_details_content_txt3" th:if="${PL}!=null" th:value="${PL.plRate}">
				</span>
					<span name="loanRate" id="bankRete" th:if="${PL}==null"></span>
				<span>%</span><br />

				<p class="borrow_details_content_information">
					借款条件：
				</p>
					<div th:if="${PL}!=null" th:text="${PL.applyRq}" style="width: 400px;margin-left: 240px;"> </div>
				<h2>借款详情</h2>
<!--				<p class="borrow_details_content_information">关于我：</p>-->
<!--				<textarea name="" rows="" cols="" id="borrow_details_content_textarea1" placeholder="文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明"></textarea><br />-->

					<p class="borrow_details_content_information">我想要使用这笔款项做什么：</p>
				<textarea name="loanPurpose" rows="" cols="" id="borrow_details_content_textarea2" placeholder="文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明"></textarea><br />
<!--				<p class="borrow_details_content_information">我的还款能力说明：</p>-->
<!--				<textarea name="" rows="" cols="" id="borrow_details_content_textarea3" placeholder="文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明"></textarea><br />-->
<!--				-->
<!--					-->

					<input type="submit" name="borrow_details_content_btn2" id="borrow_details_content_btn2" value="确认无误,申请贷款" />
				</form>
			</div>

		</div>



		<div class="footer_bg2">
			<footer>
				<ul>      
					<li><a href="/jump?pg=#">常见问题</a>|</li>
					<li><a href="/jump?pg=#">媒体报道</a>|</li>
					<li><a href="/jump?pg=#">联系我们 </a>|</li>
					<li><a href="/jump?pg=#">加入我们 </a>|</li>
					<li><a href="/jump?pg=#">隐私保护</a></li>
				</ul>
				
				<p>Copyright©2013 daikuan All Rights Reserved   建智领航公司 版权所有</p>
			</footer>
		</div>
		
		<script src=" ../js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src=" ../js/Function.js" ></script>
		<script>
			$(function(){
				var c_start=document.cookie.indexOf('username' + "=");
				if(c_start == -1){
					$("#unentry_status").show();
					$("#person_message").hide();
				}else{
					$("#unentry_status").hide();
					$("#person_message").show();
				}

				$("#cobankName").change(function () {
                    let bankId=$(this).val();
                    $.ajax({
                        url: '/loan/findRateById',
                        data: {'bankId':bankId},
                        type: 'post',
                        datatype: 'json',
                        success:function(result){
                            var html="<input type='text' name='loanRate' id='borrow_details_content_txt3' value='"+result.cobankRate+"'>";
                            $("#bankRete").html(html);
                        }

                    });
                })
				$("#LoanfirmId").val(window.localStorage.getItem("firmId"))
			})
		</script>
	</body>
</html>
